﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using University.Workshop.DataAccess;
using University.Workshop.Model;
using System.Net.Mail;

namespace University.Workshop.Business
{
    public static class AvailableProductNotification
    {
        /*public static void SendNotificationMail(User user)
        {
            /*MailMessage message = new MailMessage("user.loquesea@gmail.com",user.ContactInformation.Email,"Available Product Notification at LQS","Dear LQS User some of your wishlist products are now available");
            SmtpClient client = new SmtpClient("localhost");
            client.Send(message);*/
            //System.Web.Mail.SmtpMail.Send("user.loquesea@gmail.com", user.ContactInformation.Email, "Available Product Notification at LQS", "Dear LQS User some of your wishlist products are now available");
           /* try
            {
                MailMessage mailMessage = new MailMessage();
                mailMessage.To.Add(user.ContactInformation.Email);
                mailMessage.From = new MailAddress("user.loquesea@gmail.com");
                mailMessage.Subject = "ASP.NET e-mail test";
                mailMessage.Body = "Hello world,\n\nThis is an ASP.NET test e-mail!";
                SmtpClient smtpClient = new SmtpClient("smtp.your-isp.com");
                smtpClient.Send(mailMessage);
                Response.Write("E-mail sent!");
            }
            catch (Exception ex)
            {
                Response.Write("Could not send the e-mail - error: " + ex.Message);
            }
        }*/
    }
}
